package scau.mis4.chanyulin.entity;

import scau.mis4.chanyulin.base.common.Unique;

import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * Created by cyl on 2018/03/27.
 * Order实体类
 */
public class OrderTot extends Unique {
    private String vipId;

    private String payWay;

    private Integer itemNum;

    private Date createTime;

    private String promotionId;

    // ----------------------------------

    @Transient
    private List<OrderItem> orderItemList;

    @Transient
    private Promotion promotion;

    // ----------------------------------

    public OrderTot() {
    }

    public OrderTot(String vipId, String payWay, Integer itemNum, Date createTime, String promotionId) {
        this.vipId = vipId;
        this.payWay = payWay;
        this.itemNum = itemNum;
        this.createTime = createTime;
        this.promotionId = promotionId;
    }

    public String getVipId() {
        return vipId;
    }

    public void setVipId(String vipId) {
        this.vipId = vipId;
    }

    public String getPayWay() {
        return payWay;
    }

    public void setPayWay(String payWay) {
        this.payWay = payWay;
    }

    public Integer getItemNum() {
        return itemNum;
    }

    public void setItemNum(Integer itemNum) {
        this.itemNum = itemNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPromotionId() {
        return promotionId;
    }

    public void setPromotionId(String promotionId) {
        this.promotionId = promotionId;
    }

    public List<OrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }

    public Promotion getPromotion() {
        return promotion;
    }

    public void setPromotion(Promotion promotion) {
        this.promotion = promotion;
    }
}
